public class TestInheritancel {
    public static void main(String[] args) {
        //创建学生对象
        Student stu = new Student("S2025001","张三",85.5);

        //调用继承的父类方法
        stu.showInfo();
        //调用子类持有方法
        System.out.println("成绩"+ stu.getScore() + "分");

    }
}
